<?php

/**
 * Backend Article form.
 *
 * @package    wills
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class BackendArticleForm extends ArticleForm
{
  public function configure()
  {
    unset(
      $this['publisher_id'],
      $this['comment_cnt'], 
      $this['created_at'], 
      $this['updated_at']
    );

    $this->validatorSchema['reference'] = new sfValidatorPass();
    $this->validatorSchema['reference_url'] = new sfValidatorPass();

    $this->widgetSchema['area_id']->addOption('table_method', 'getAdminAreaListQuery');
	$this->validatorSchema['content'] = new sfValidatorString(array('max_length' => 20000));
  }
}

